<html>
<head><title>JesusCrypt</title>
<script>
function saltdate() {
var saltphrase = new Date();
var frame = document.getElementById('addsalt');
frame.value = saltphrase;
}

function salttime() {
var saltphrase = Math.round(new Date().getTime() / 1000);
var frame = document.getElementById('addsalt');
frame.value = saltphrase;
}

function saltagent() {
var saltphrase = navigator.userAgent;
var frame = document.getElementById('addsalt');
frame.value = saltphrase;
}
</script>
</head>
<body>
<style>
body {
background-color: #b0c4de;
}
</style>
<tt>
JesusCrypt - Hashing tool by MauroEldritch<BR>
@ Eldritch Software - http://Eldritch.com.ar<BR><BR>
<hr><BR>
<form id="salter" action="/" method="POST" style="width: 60%; background-color: #FFFFFF; border-style: ridge;"><fieldset><legend>Encrypt</legend><BR>
String to Hash <BR><input type="text" name="hash" style="width: 90%"><BR>
Algorithm to use
<select name="algo">
<option value="MD5">MD5</option>
<option value="SHA1">SHA1</option>
<option value="SHA2">SHA2</option>
<option value="RMD160">RMD160</option>
</select><input type="checkbox" name="salt" value="salt"> Use Salt
<BR><BR>
Salt <BR><input type="text" id="addsalt" name="addsalt" value="Enter custom salt or choose from presets below..." style="width: 90%">
<BR><BR>
<input type="submit" value="Hash">
<input type="button" value="Salt: Current Hour" onclick="salttime()">
<input type="button" value="Salt: Current Date" onclick="saltdate()">
<input type="button" value="Salt: Current UserAgent" onclick="saltagent()">
</fieldset></form>

<% #Ruby tags - Oh yeah!

%>
</tt>
</body>
</html>